$(function () {
    var iSBLId = xhTool.getQuery('iSBLId');
    $('#btn_view').click(function () {
        var startTime = $('[name=startTime]').val();
        var endTime   = $('[name=endTime]').val();
        var sBookId   = $('[name=sBookId]').val();
            xhExtra.askChangeStatus('school_book/saveFeedback',{iSBLId:iSBLId,startTime:startTime,endTime:endTime,sBookId:sBookId},null,'确定要生成反馈吗？',function (res) {
            window.top.xhTop.showSuccess(res.msg);
            location.reload();
        });
    });

    $('.delBtn').click(function () {
        var nodeId = $(this).attr('nodeId');
        xhExtra.askChangeStatus('school_book/delFeedback',{nodeId:nodeId},null,null,function (res) {
            window.top.xhTop.showSuccess(res.msg);
            location.reload();
        })
    });
});